package com.database.dao.impl;

import javax.inject.Named;

import org.hibernate.Session;
import org.springframework.stereotype.Component;

import com.database.bean.CompanyRoundDecisionAndResult;
import com.database.dao.CompanyRoundDecisionAndResultDao;

@Named("companyRoundDecisionAndResultDao")
@Component
public class CompanyRoundDecisionAndResultDaoImpl extends BaseDaoImpl<CompanyRoundDecisionAndResult> implements CompanyRoundDecisionAndResultDao {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public CompanyRoundDecisionAndResultDaoImpl() {
		super(CompanyRoundDecisionAndResult.class);
	}

	@Override
	public CompanyRoundDecisionAndResult reloadReportDecisions(CompanyRoundDecisionAndResult crDecRes) {
		Session session = getSession();
		session.refresh(crDecRes);
		crDecRes.getReportDecisions();
		closeSession();
		return crDecRes;
	}
}
